
package net.atremmedia.gwt.actionjava.examples.advanced;

import java.util.ArrayList;
import java.util.List;
import net.atremmedia.gwt.actionjava.examples.AJExample;
import net.atremmedia.gwt.actionjava.examples.advanced.samples.AdvancedExample1;
import net.atremmedia.gwt.actionjava.examples.advanced.samples.AdvancedExample2;
import net.atremmedia.gwt.actionjava.examples.frame.AJExampleOverview;
import actionjava.session.view.CanvasInUseException;
import actionjava.session.view.CanvasNotFoundException;

public class AdvancedExamples extends AJExampleOverview
{
	public AdvancedExamples() throws CanvasNotFoundException, CanvasInUseException
	{
		super("ajTest", 800, 600);
	}

	private AJExample[] createExamples()
	{
		List<AJExample> examples = new ArrayList<AJExample>();
		examples.add(new AdvancedExample1(this));
		examples.add(new AdvancedExample2(this));

		return examples.toArray(new AJExample[examples.size()]);
	}

	@Override
	public void run()
	{
		setExamples(createExamples());
		super.run();
	}
}
